New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json-1.8.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. #253
Comments
I have the same issue. Am on Yosemite (Mac) and Ruby 2.2.2. |
The same issue on ubuntu-trusty-64 running ruby 2.2.3. the solution is to install libgmp3-dev. |
Thanks alaouy! |
@alaouy Thanks. |
thanks!!! |
Good tip! |
Hi i have the same problem on mac osx10.10 please someone can help , i search solution but i dont see nothing |
Thanks a lot! |
thanks @alaouy 👍 |
thanks! |
Thanks @alaouy, God bless you man! |
Hi, I have the same exact problem in Windows7. Any help would be greatly appreciated! Thanks in advance! |
thanks @alaouy 👍 |
thanks! |
Thank you!! |
Thank you. |
Great |
Thanks you too! |
Thank you @alaouy ! |
Thank you @alaouy ! That was really helpful. No other solution online worked! |
Thanks you too! |
Woooww it's work, @alaouy Thanks. |
Thanks @alaouy your comment definitely got me on the right track. If bundle install will not work for you because you recently updated to El Capitan 10.10
To get around this issue try: $xcode-select --install Then agree or disagree with Apples license. |
🙇 |
👍 |
Thanks @alaouy |
Thanks @kevindelord ! worked great on macOS 10.12.4 - Ruby 2.4.1 |
I'm on OSX Sierra
|
thanks @Juice007. most helpful. worked on Mac OS X El Capitan 10.11.6 with Ruby 2.4.0 |
|
I am a noob in ruby and I saw @Juice007 's method helps a lot of people then I really want to give a try. But really not sure how to add a line in my gemfile. Do I need to run something in terminal to open and edit the file? or follow the direction locally and edit in a file whose name is "Gemfile". If it's the second one, I found not only one file whose name is "Gemfile", then which one should I choose? |
@zhaoye159 open the |
Running on OSX Sierra, this error "Failed to build gem native extension" for json (1.8.3) was not fixable with xcode-select in my case but downgrading my ruby version from 2.4.1 to 2.3.4 fixed it, as Juice007 pointed out above. |
@alaouy, thanks) |
Thanks @alaouy :D |
Thanks @kevindelord I have finally solved the problem.
|
Does anyone knows solution for archlinux? What package I have to install instead of P.S. tried |
thanks for help! @vhosakot |
In case of my mac, i can't run: Following @Juice007, in MacOS Sierra, Add this line at before your crash: Finally, it works for me very well. |
For Arch Linux users (cc @BjornMelgaard):
should do the trick. |
Thanks @alaouy |
|
@danielhaim1 It works.Thanks :) |
Either Ruby or gem is new to me. |
You should upgrade json-1.8.5+ or the stable versions of Ruby like 2.5 or 2.6. |
and what about ubuntu??? |
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb 2>&1
Gem files will remain installed in /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection.
Results logged to /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that
gem install json -v '1.8.3'
succeeds before bundling.The text was updated successfully, but these errors were encountered: